package com.example.cricketscorer.client.bean;

import com.google.gwt.user.client.rpc.IsSerializable;

public class BatsmanBean implements IsSerializable {
	
	private PlayerBean playerBean;
	private boolean onStrike;
	private int runsScored;
	private int ballsFaced;
	private int fours;
	private int sixes;
	
	public BatsmanBean(PlayerBean playerBean) {
		super();
		this.playerBean = playerBean;
	}
	
	public boolean isOnStrike() {
		return onStrike;
	}
	public void setOnStrike(boolean onStrike) {
		this.onStrike = onStrike;
	}
	public int getRunsScored() {
		return runsScored;
	}
	public void setRunsScored(int runsScored) {
		this.runsScored = runsScored;
	}
	public int getBallsFaced() {
		return ballsFaced;
	}
	public void setBallsFaced(int ballsFaced) {
		this.ballsFaced = ballsFaced;
	}
	public int getFours() {
		return fours;
	}
	public void setFours(int fours) {
		this.fours = fours;
	}
	public int getSixes() {
		return sixes;
	}
	public void setSixes(int sixes) {
		this.sixes = sixes;
	}
	
	public String getName() {
		return playerBean.getName();
	}
	
	public BATSTYLE getBatStyle() {
		return playerBean.getBatstyle();
	}
	
}

